import request from '@/utils/request'

// 查询方案分类关系列表
export function listSolutionCategory(query) {
  return request({
    url: '/solution/solutionCategory/list',
    method: 'get',
    params: query
  })
}

// 查询方案分类关系详细
export function getSolutionCategory(solutionId) {
  return request({
    url: '/solution/solutionCategory/' + solutionId,
    method: 'get'
  })
}

// 新增方案分类关系
export function addSolutionCategory(data) {
  return request({
    url: '/solution/solutionCategory',
    method: 'post',
    data: data
  })
}

// 修改方案分类关系
export function updateSolutionCategory(data) {
  return request({
    url: '/solution/solutionCategory',
    method: 'put',
    data: data
  })
}

// 删除方案分类关系
export function delSolutionCategory(solutionId) {
  return request({
    url: '/solution/solutionCategory/' + solutionId,
    method: 'delete'
  })
}
